﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FantasyBlog.DAL;

namespace FantasyBlog.BLL
{
    public interface IPostProvider
    {
        IQueryable<Post> GetPosts();

        IQueryable<Post> GetTagPosts(string tag);

        IQueryable<Post> GetPostByUser(string username);

        IQueryable<Post> GetPostByDate(DateTime starttime, DateTime endtime);

        IQueryable<Post> SearhPost(string Keyword);

        IQueryable<Post> GetPostsByCategory(string Name);

        Post GetPost(int id);

    }
}
